<template>
  <div class="mycreen">
      <i class="el-icon-full-screen" @click="toggle"></i>
  </div>
</template>

<script>
import screenfull from 'screenfull'
export default {
    name:'mycreen',
    methods:{
        toggle(){
            screenfull.toggle()     //全屏、退出全屏
        }
    }
}
</script>

<style lang="scss">
.mycreen{
    margin-right: 20px;
}
</style>